home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / text / DefaultEditorKit$UnselectAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  704 b   |  18 lines

  1. package javax.swing.text;
  2.  
  3. import java.awt.event.ActionEvent;
  4.  
  5. class DefaultEditorKit$UnselectAction extends TextAction {
  6.    DefaultEditorKit$UnselectAction() {
  7.       super("unselect");
  8.    }
  9.  
  10.    public void actionPerformed(ActionEvent var1) {
  11.       JTextComponent var2 = ((TextAction)this).getTextComponent(var1);
  12.       if (var2 != null) {
  13.          var2.setCaretPosition(var2.getCaretPosition());
  14.       }
  15.  
  16.    }
  17. }
  18.